﻿
// PocketServDoc.h: CPocketServDoc 类的接口
//


#pragma once


class CPocketServSrvrItem;

class CPocketServDoc : public COleServerDoc
{
protected: // 仅从序列化创建
	CPocketServDoc() noexcept;
	DECLARE_DYNCREATE(CPocketServDoc)

// 特性
public:
	CPocketServSrvrItem* GetEmbeddedItem()
		{ return reinterpret_cast<CPocketServSrvrItem*>(COleServerDoc::GetEmbeddedItem()); }

// 操作
public:

// 重写
protected:
	virtual COleServerItem* OnGetEmbeddedItem();
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
#ifdef SHARED_HANDLERS
	virtual void InitializeSearchContent();
	virtual void OnDrawThumbnail(CDC& dc, LPRECT lprcBounds);
#endif // SHARED_HANDLERS

// 实现
public:
	virtual ~CPocketServDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()

#ifdef SHARED_HANDLERS
	// 用于为搜索处理程序设置搜索内容的 Helper 函数
	void SetSearchContent(const CString& value);
#endif // SHARED_HANDLERS

public:
    CString m_strText;

public:
    afx_msg void OnSrvrEmbeddedTest();
};
